package com.apobates.jforum2.threads.stub.vo;

import java.io.Serializable;

/**
 * 话题相关记录结果封装(TagRelateTopic)
 * @author xiaofanku
 * @since 20200522
 */
public class ThreadsTagRelateVo implements Serializable, Comparable<ThreadsTagRelateVo>{
    //话题的标签
    private String title;
    //话题ID
    private long threads;
    //访问连接
    private String link;
    //显示的顺序,小的先显示
    private int ranking;
    //相似度
    private double similarity;
    //发布日期
    private String date;

    public ThreadsTagRelateVo() {
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public long getThreads() {
        return threads;
    }

    public void setThreads(long threads) {
        this.threads = threads;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public int getRanking() {
        return ranking;
    }

    public void setRanking(int ranking) {
        this.ranking = ranking;
    }

    public double getSimilarity() {
        return similarity;
    }

    public void setSimilarity(double similarity) {
        this.similarity = similarity;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    @Override
    public int compareTo(ThreadsTagRelateVo o) {
        return ranking - o.getRanking();
    }
}